<?php
include("../include/config.php");
$id= $_REQUEST["id"];
$SQL="DELETE FROM subcategory WHERE id=$id";
$rs=mysql_query($SQL);
if($rs)
{
	$sql2 = "DELETE FROM subcategory WHERE parent_id=$id";
	mysql_query($sql2);
	header("Location:category.php");
} else {
	echo ("Khong xoa duoc, vui long kiem tra lai");
		}

?>